import axios from './axios'
import qs from 'qs'

var tgid = $cookies.get('tgid')
var token = $cookies.get('token')

export function getDetailInfo(iid) {
    return axios({
        url: '/gameinfo',
        method: 'post',
        data: qs.stringify({
            tgid: tgid,
            token: token,
            gameid: iid,
        }),
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}